<?php
$successes = $GLOBALS[RC]->getMessager()->getSuccess();
$informations = $GLOBALS[RC]->getMessager()->getInformation();
$errors = $GLOBALS[RC]->getMessager()->getError();
$notices = $GLOBALS[RC]->getMessager()->getNotice();
if(!empty($errors) || !empty($informations) || !empty($successes) || !empty($notices)):
?>
<div class="message-container">
<?php
if(!empty($successes)):
	foreach($successes as $success):
?>
<div class="response-msg success"><span><?php echo $success ?></span></div>
<?php
	endforeach;
endif;
?>

<?php
if(!empty($informations)):
	foreach($informations as $information):
?>
<div class="response-msg inf"><span><?php echo $information ?></span></div>
<?php
	endforeach;
endif;
?>

<?php
if(!empty($notices)):
	foreach($notices as $notice):
?>
<div class="response-msg notice"><span><?php echo $notice ?></span></div>
<?php
	endforeach;
endif;
?>

<?php
if(!empty($errors)):
	foreach($errors as $error):
?>
<div class="response-msg error"><span><?php echo $error ?></span></div>
<?php
	endforeach;
endif;
?>
</div>
<?php endif; ?>